<!--
/**
 * moOde audio player (C) 2014 Tim Curtis
 * http://moodeaudio.org
 *
 * This Program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3, or (at your option)
 * any later version.
 *
 * This Program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * 汉化：Androidnews
 */
-->
<div id="container">
<div class="container">
	<h1 class="ren-config">渲染器</h1>
	<p>
		音频渲染器是独立于MPD的播放应用程序。当客户端连接到其中一个渲染器时，MPD将停止，渲染器将开始播放。当客户端停止或断开连接时，根据“恢复MPD”设置，MPD可以恢复播放。
	</p>

	<form class="form-horizontal" method="post">
		<div class="control-group $_feat_bluetooth">
			<legend>蓝牙</legend>
			<p class="sub-legend">蓝牙适配器必须存在并启用，否则蓝牙将无法启动。</p>
			<label class="control-label">控制</label>
			<div class="controls">
				<!-- Radio button -->
				<div class="toggle">
					<label class="toggle-radio" for="toggle-btsvc-2">开</label>$_select[btsvc_on]
					<label class="toggle-radio" for="toggle-btsvc-1">关</label>$_select[btsvc_off]
				</div>
				<!-- Set button + (i)-->
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_bt_settings" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-btsvc" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<!-- Help (i) -->
				<span id="info-btsvc" class="config-help-info">
					蓝牙由Johan Hedberg（BlueZ）和Arkadiusz Bokowy（BlueZ alsa）设计。
                </span>
			</div>

			<label class="control-label" for="btname">名称</label>
			<div class="controls">
				<input class="config-input-large" type="text" id="btname" name="btname" value="$_select[btname]" required>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_bt_settings" value="novalue">设置</button>
			</div>

			<label class="control-label">配对代理</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-pairing-agent-2">开</label>$_select[pairing_agent_on]
					<label class="toggle-radio" for="toggle-pairing-agent-1">关</label>$_select[pairing_agent_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_pairing_agent" value="novalue" $_bt_btn_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-pairing-agent" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-pairing-agent" class="config-help-info">
					自动接受传入的配对和连接请求，而无需执行蓝牙扫描。
                </span>
			</div>

			<label class="control-label">恢复MPD</label>
			<div class="controls">
				<div class="toggle config-toggle-yn">
					<label class="toggle-radio" for="toggle-rsmafterbt-2">是</label>$_select[rsmafterbt_yes]
					<label class="toggle-radio" for="toggle-rsmafterbt-1">否</label>$_select[rsmafterbt_no]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_rsmafterbt" value="novalue" $_bt_btn_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-rsmafterbt" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-rsmafterbt" class="config-help-info">
					在蓝牙客户端断开连接后恢复MPD播放。
                </span>
			</div>
			<!-- Buttons + text -->
			<div class="controls">
				<a data-toggle="modal" href="#pa-restart" $_pa_link_disable><button class="btn btn-medium btn-primary config-btn" $_pa_btn_disable>重启</button></a>
				<span class="config-btn-after">代理</span>
			</div>

			<div class="controls">
				<a data-toggle="modal" href="#bt-restart" $_bt_link_disable><button class="btn btn-medium btn-primary config-btn" $_bt_btn_disable>重启</button></a>
				<span class="config-btn-after">控制</span>
			</div>

			<div class="controls">
				<a href="blu-config.php"><button class="btn btn-medium btn-primary config-btn">打开</button></a>
				<span class="config-btn-after">蓝牙控制器</span>
			</div>
		</div>

		<div class="control-group $_feat_airplay">
			<legend>AirPlay</legend>
			<p class="sub-legend">如果客户端或接收器不支持AirPlay 2，请选择AirPlay 1协议。</p>
			<label class="control-label">服务</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-airplaysvc-2">开</label>$_select[airplaysvc_on]
					<label class="toggle-radio" for="toggle-airplaysvc-1">关</label>$_select[airplaysvc_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_airplay_settings" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-airplaysvc" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-airplaysvc" class="config-help-info">
					Shairport-sync by Mike Brady, the wonderful fork of	the original Shairport by James "Abrasive" Laird.
                </span>
			</div>

			<label class="control-label" for="airplayname">名称</label>
			<div class="controls">
				<input class="config-input-large" type="text" id="airplayname" name="airplayname" value="$_select[airplayname]" required>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_airplay_settings" value="novalue">设置</button>
			</div>

			<label class="control-label" for="airplay-protocol">协议</label>
			<div class="controls">
				<select id="airplay-protocol" class="config-select-large" name="airplay_protocol">
					$_select[airplay_protocol]
				</select>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_airplay_protocol" value="novalue">设置</button>
				<span id="info-airplay-protocol" class="config-help-info">
					此选项安装特定于协议的shairport sync版本。需要Internet连接。
                </span>
			</div>

			<label class="control-label">恢复MPD</label>
			<div class="controls">
				<div class="toggle config-toggle-yn">
					<label class="toggle-radio" for="toggle-rsmafterapl-2">是</label>$_select[rsmafterapl_yes]
					<label class="toggle-radio" for="toggle-rsmafterapl-1">否</label>$_select[rsmafterapl_no]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_rsmafterapl" value="novalue" $_airplay_btn_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-rsmafterapl" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-rsmafterapl" class="config-help-info">
					在AirPlay客户端停止播放或断开连接后恢复MPD播放。
                </span>
			</div>

			<div class="controls">
				<a data-toggle="modal" href="#airplay-restart" $_airplay_link_disable><button class="btn btn-medium btn-primary config-btn" $_airplay_btn_disable>重启</button></a>
				<span class="config-btn-after">AirPlay</span>
			</div>

			<div class="controls">
				<a href="apl-config.php"><button class="btn btn-medium btn-primary config-btn">编辑</button></a>
				<span class="config-btn-after">Airplay设置</span>
			</div>
		</div>

		<div class="control-group $_feat_spotify">
			<legend>Spotify Connect</legend>
			<p class="sub-legend">此服务需要一个Spotify Premium帐户。</p>
			<label class="control-label">服务</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-spotifysvc-2">开</label>$_select[spotifysvc_on]
					<label class="toggle-radio" for="toggle-spotifysvc-1">关</label>$_select[spotifysvc_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_spotify_settings" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-spotifysvc" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-spotifysvc" class="config-help-info"">
					librespot组织的librespot，Paul Lietar原创librespot的精彩分支。
                </span>
			</div>

			<label class="control-label" for="spotifyname">名称</label>
			<div class="controls">
				<input class="config-input-large" type="text" id="spotifyname" name="spotifyname" value="$_select[spotifyname]" required>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_spotify_settings" value="novalue">设置</button>
			</div>

			<label class="control-label">恢复MPD</label>
			<div class="controls">
				<div class="toggle config-toggle-yn">
					<label class="toggle-radio" for="toggle-rsmafterspot-2">是</label>$_select[rsmafterspot_yes]
					<label class="toggle-radio" for="toggle-rsmafterspot-1">否</label>$_select[rsmafterspot_no]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_rsmafterspot" value="novalue" $_spotify_btn_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-rsmafterspot" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-rsmafterspot" class="config-help-info">
					在Spotify客户端停止播放或断开连接后恢复MPD播放。
                </span>
			</div>

			<div class="controls">
				<a data-toggle="modal" href="#spotify-restart" $_spotify_link_disable><button class="btn btn-medium btn-primary config-btn" $_spotify_btn_disable>重启</button></a>
				<span class="config-btn-after">Spotify Connect</span>
			</div>

			<div class="controls">
				<a href="spo-config.php"><button class="btn btn-medium btn-primary config-btn">编辑</button></a>
				<span class="config-btn-after">Spotify Connect设置</span>
			</div>

			<div class="controls">
				<a data-toggle="modal" href="#spotify-clear-credentials" $_spotify_link_disable><button class="btn btn-medium btn-primary config-btn" $_spotify_btn_disable>清除</button></a>
				<span class="config-btn-after">凭据缓存</span>
			</div>
		</div>

		<div class="control-group $_feat_squeezelite">
			<legend>Squeezelite</legend>
			<p class="sub-legend">此服务要求Logitech Media Server（LMS）在网络上运行。</p>
			<label class="control-label">服务</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-slsvc-2">开</label>$_select[slsvc_on]
					<label class="toggle-radio" for="toggle-slsvc-1">关</label>$_select[slsvc_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_sl_settings" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-slsvc" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-slsvc" class="config-help-info"">
					Adrian Smith和Ralph Irving的Squeezelite渲染器 (@triode).
                </span>
			</div>

			<label class="control-label">恢复MPD</label>
			<div class="controls">
				<div class="toggle config-toggle-yn">
					<label class="toggle-radio" for="toggle-rsmaftersl-2">是</label>$_select[rsmaftersl_yes]
					<label class="toggle-radio" for="toggle-rsmaftersl-1">否</label>$_select[rsmaftersl_no]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_rsmaftersl" value="novalue" $_sl_btn_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-rsmaftersl" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-rsmaftersl" class="config-help-info">
					LMS电源关闭后恢复MPD播放。
                </span>
			</div>

			<div class="controls">
				<a data-toggle="modal" href="#sl-restart" $_sl_link_disable><button class="btn btn-medium btn-primary config-btn" $_sl_btn_disable>重启</button></a>
				<span class="config-btn-after">Squeezelite</span>
			</div>

			<div class="controls">
				<a href="sqe-config.php"><button class="btn btn-medium btn-primary config-btn">编辑</button></a>
				<span class="config-btn-after">Squeezelite设置</span>
			</div>
		</div>

		<div class="control-group $_feat_roonbridge">
			<legend>RoonBridge</legend>
			<p class="sub-legend">该部件由制造商提供。有关安装说明，请访问他们的网站。</p>
		</div>

		<div class="control-group $_feat_roonbridge">
			<legend>RoonBridge</legend>
			<p class="sub-legend">
				此服务要求Roon Core在网络上运行。<br>
				<b>注意:</b> 当Roon端点音量设置为“设备音量”时，播放开始时音量为100%。
			</p>
			<label class="control-label">服务</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-rbsvc-2">开</label>$_select[rbsvc_on]
					<label class="toggle-radio" for="toggle-rbsvc-1">关</label>$_select[rbsvc_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_rb_settings" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-rbsvc" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-rbsvc" class="config-help-info">
					RoonBridge由Roon Lab提供。
                </span>
			</div>

			<label class="control-label">恢复MPD</label>
			<div class="controls">
				<div class="toggle config-toggle-yn">
					<label class="toggle-radio" for="toggle-rsmafterrb-2">是</label>$_select[rsmafterrb_yes]
					<label class="toggle-radio" for="toggle-rsmafterrb-1">否</label>$_select[rsmafterrb_no]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_rsmafterrb" value="novalue" $_rb_btn_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-rsmafterrb" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-rsmafterrb" class="config-help-info">
					断开RoonBridge后恢复MPD播放。
                </span>
			</div>

			<div class="controls">
				<a data-toggle="modal" href="#rb-restart" $_sl_link_disable><button class="btn btn-medium btn-primary config-btn" $_rb_btn_disable>重启</button></a>
				<span class="config-btn-after">RoonBridge</span>
			</div>
		</div>

		<div class="control-group $_feat_upmpdcli">
			<legend>MPD的UPnP客户端</legend>
			<p class="sub-legend">此服务的功能相当于使用MPD进行播放的UPnP媒体呈现器。</p>
			<label class="control-label">服务</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-upnpsvc-2">开</label>$_select[upnpsvc_on]
					<label class="toggle-radio" for="toggle-upnpsvc-1">关</label>$_select[upnpsvc_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_upnp_settings" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-upnpsvc" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-upnpsvc" class="config-help-info">
					UPnP客户端MPD由Jean-Francois Dockes。
                </span>
			</div>

			<label class="control-label" for="btname">名称</label>
			<div class="controls">
				<input class="config-input-large" type="text" id="upnpname" name="upnpname" value="$_select[upnpname]" required>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_upnp_settings" value="novalue">设置</button>
			</div>

			<div class="controls">
				<a data-toggle="modal" href="#upnp-restart" $_upnp_link_disable><button class="btn btn-medium btn-primary config-btn" $_upnp_btn_disable>重启</button></a>
				<span class="config-btn-after">UPnP</span>
			</div>

			<div class="controls">
				<a href="upp-config.php"><button class="btn btn-medium btn-primary config-btn">编辑</button></a>
				<span class="config-btn-after">UPnP设置</span>
			</div>
		</div>

		<div class="control-group $_feat_minidlna">
			<legend>DLNA Media Server</legend>
			<p class="sub-legend">该服务对为MPD定义的音乐源进行索引，并使其可用于UPnP控制点。</p>
			<label class="control-label">服务</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-dlnasvc-2">开</label>$_select[dlnasvc_on]
					<label class="toggle-radio" for="toggle-dlnasvc-1">关</label>$_select[dlnasvc_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_dlna_settings" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-dlnasvc" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-dlnasvc" class="config-help-info">
					DLNA media server (miniDLNA) by Justin Maggard.
                </span>
			</div>

			<label class="control-label" for="dlnaname">名称</label>
			<div class="controls">
				<input class="config-input-large" type="text" id="dlnaname" name="dlnaname" value="$_select[dlnaname]" required>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_dlna_settings" value="novalue">设置</button>
			</div>

			<div class="controls">
				<a data-toggle="modal" href="#rebuild-dlnadb" $_dlna_link_disable><button class="btn btn-medium btn-primary config-btn" $_dlna_btn_disable>重建</button>
				<span class="config-btn-after">DLNA数据库</span>
			</div>

			<div class="controls">
				<a href="http://$_select[hostip]:8200" class="btn btn-medium btn-primary config-btn target-blank-link" target="_blank" $_dlna_link_disable $_dlna_btn_disable>查看</a>
				<span class="config-btn-after">数据库状态</span>
			</div>
		</div>
	</form>
</div>
</div>

<form class="form-horizontal" method="post">
	<div id="bt-restart" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="bt-restart-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>重启蓝牙控制器？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="btrestart" value="1">确认</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="pa-restart" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="pa-restart-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>重启配对代理？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="parestart" value="1">确认</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="airplay-restart" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="airplay-restart-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>重启AirPlay渲染器？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="airplayrestart" value="1">确认</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="spotify-restart" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="spotify-restart-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>重启Spotify连接渲染器？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="spotifyrestart" value="1">确认</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="spotify-clear-credentials" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="spotify-clear-credentials-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>是否清除凭据缓存？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="spotify_clear_credentials" value="1">确认</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="sl-restart" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="sl-restart-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>重启Squeezelite渲染器？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="slrestart" value="1">确认</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="rb-restart" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="rb-restart-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>重启RoonBridge渲染器？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="rbrestart" value="1">确认</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="upnp-restart" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="upnp-restart-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>重启UPnP渲染器？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="upnprestart" value="1">确认</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="rebuild-dlnadb" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="rebuild-dlnadb-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>重建DLNA数据库？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="rebuild_dlnadb" value="1">确认</button>
		</div>
	</div>
</form>
